package com.iris.live.services.common.reconsitution;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by DF on 11/25/2016
 */
public class BIExtractMetaData {
    private     String code;
    private     String name;
    private     String sql;
    private     List<BIExtractColumnMetaData> extractColumnMetaDatas = new ArrayList<>();

    public BIExtractMetaData() {
    }

    public BIExtractMetaData(String code, String name, String sql) {
        this.code = code;
        this.name = name;
        this.sql = sql;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public BIExtractMetaData addExtractColumnMetaData(BIExtractColumnMetaData extractColumnMetaData){
        this.extractColumnMetaDatas.add(extractColumnMetaData);
        return this;
    }

    public List<BIExtractColumnMetaData> getExtractColumnMetaDatas() {
        return extractColumnMetaDatas;
    }
}
